<script setup>
import { ref } from 'vue'
import useStore from '../../../stores/counter';
const radio = ref(3)
const store = useStore()
const form = ({
    
})
const submit = () => {
    store.addCount.push({
        ...form.value
    })
}
</script>

<template>
    <div class="page">
          <el-radio-group v-model="radio">
               <el-radio :value="3">淘宝</el-radio>
               <el-radio :value="6">京东</el-radio>
               <el-radio :value="9">拼多多</el-radio>
          </el-radio-group>
          <el-input v-model="input" style="width: 240px" placeholder="如:拍台灯" />
          <div>本金
            <el-input v-model="input" style="width: 50px"/>元
            <el-checkbox v-model="checked1" label="本金已返" size="large" />
          </div>
          <div>佣金
            <el-input v-model="input" style="width: 50px"/>元
            <el-checkbox v-model="checked1" label="佣金已返" size="large" />
          </div>
          <el-input
            v-model="textarea"
            style="width: 240px"
            :rows="4"
            type="textarea"
            placeholder="输入备注,没有可不写"
            />
          <el-button :loading="loading" type="primary" @click="submit" style="width: 100%">提交</el-button>
     </div>
</template>

<style lang="scss" scoped>
.page{
    height: 500px;
    background: #EEE;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    .el-button{
        margin-top: 100px;
    }
}
</style>